package com.example.front.dto;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BoxDto {
    @NotNull(message = "id不能为空")
    private Long id;
    @NotBlank(message = "名称不能为空")
    private String name;
    @NotNull(message = "网关不能为空")
    private Long gatewayId;
    @NotNull(message = "产线不能为空")
    private Long lineId;
    @NotNull(message = "盒子类型不能为空")
    private Long categoryId;
    private Long craftId;
    private Long equId;
    private String equName; //设备名称
    private String equNum;  //设备编号
    @NotNull(message = "按钮序列不能为空")
    private Integer devAddr;
    @ApiModelProperty(value = "产线名字")
    private String lineName;
    @ApiModelProperty(value = "网关名字")
    private String gatewayName;
    @ApiModelProperty(value = "盒子种类")
    private String categoryName;
//    @NotNull(message = "工艺名称不能为空")
    private String craftName;
    private Long tenantId;
    private List<BoxEventUserDto> event;

}
